using System.Collections.Generic;

namespace Jv.Games.Engine
{
	public class Frames
	{
		#region Constructors
		public Frames()
		{
			StillFrames = new List<Frame>();
		}
		#endregion

		internal void Next()
		{
			CurrentFrameIndex = (CurrentFrameIndex + 1)%Count;
			if(CurrentFrameIndex == 0)
			{
				//TODO: fire event OnFinish
			}
		}

		#region Properties
		public List<Frame> StillFrames { get; set; }
		public int CurrentFrameIndex { get; private set; }
		public int Count { get { return StillFrames.Count; } }
		#endregion
	}
}